package xyz.thoughtset.viewer.common.exc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import xyz.thoughtset.viewer.common.core.entity.BaseMeta;
import xyz.thoughtset.viewer.common.crud.core.annotation.ApiCRUDPower;
import xyz.thoughtset.viewer.common.envvar.annotation.EnvPropSign;
import xyz.thoughtset.viewer.common.exc.exceptions.ExecException;

@NoArgsConstructor
@AllArgsConstructor
@Data
@EnvPropSign(single = true)
public class ExcEnvVar {
    protected Integer saveNums = -1;//异常条数保存条数
    protected Integer saveTimes = -1;//异常条数保存时长
    protected boolean useSave = true;

    public boolean needCheck() {
        return !(-1 == saveNums && -1 == saveTimes);
    }

}
